﻿using System;
using System.Text;
using System.Collections.Generic;
using System.Data;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using Extentions;

namespace TrainingReminderSystem.Model
{
    /// <summary>
    /// 推荐人所属机构
    /// </summary>
    [ExLanguageKey("ReferrerOrganizationRelation")]
    public partial class ReferrerOrganizationRelationExList
    {
        /// <summary>
        /// 
        /// </summary>
        [ExLanguageKey("ID")]
        [Key]
        public int ID { get; set; }

        /// <summary>
        /// 推荐人ID
        /// </summary>
        [ExLanguageKey("ReferrerID")]
        public int ReferrerID { get; set; }

        /// <summary>
        /// 机构ID
        /// </summary>
        [ExLanguageKey("OrganizationID")]
        public int OrganizationID { get; set; }

        /// <summary>
        /// 推荐人
        /// </summary>
        [ExNoModify]
        [ExLanguageKey("Referrer")]
        public ReferrerExPart Referrer { get; set; }

        /// <summary>
        /// 机构
        /// </summary>
        [ExNoModify]
        [ExLanguageKey("Organization")]
        public OrganizationExPart Organization { get; set; }
    }
}
